package com.haiqiu.file.ftp.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;


/**
 * @author HaiQiu
 * ftp工具类初始化配置
 */
@Configuration
@ConfigurationProperties(prefix = "ftp.server")
public class FtpConfig {

    /**
     * 是否启用FTP服务
     */
    private Boolean enable = false;


    /**
     * ftp服务器ip或者域名
     */
    private String host = "127.0.0.1";

    /**
     * 端口
     */
    private int port = 21;

    /**
     * 用户名
     */
    private String username = "test_ftp";

    /**
     * 密码
     */
    private String password = "test_ftp";

    /**
     * 是否启用被动模式
     */
    private boolean passiveMode = false;

    /**
     * 编码
     */
    private String encoded = "UTF-8";

    /**
     * 根目录
     */
    private String currentPath = "/";

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isPassiveMode() {
        return passiveMode;
    }

    public void setPassiveMode(boolean passiveMode) {
        this.passiveMode = passiveMode;
    }

    public String getEncoded() {
        return encoded;
    }

    public void setEncoded(String encoded) {
        this.encoded = encoded;
    }

    public String getCurrentPath() {
        return currentPath;
    }

    public void setCurrentPath(String currentPath) {
        this.currentPath = currentPath;
    }
}
